package exp1.test4;

/**
 * Created by 春旺 on 2017/9/25.
 */
public interface LinkedInterface <T>{
    /** Adds a new entry to this bag.
     @param newEntry The object to be added as a new entry.
     @return True if the addition is successful, or false if not. */
    public void add(T newEntry);
    /** Removes one occurrence of a given entry from this bag, if possible.
    @param anEntry The entry to be removed.
            @return True if the removal was successful, or false if not. */
    public void remove (T anEntry);
    /** Tests whether this bag contains a given entry.
     @param anEntry The entry to locate.
     @return True if the bag contains anEntry, or false if not. */
    public boolean contains(T anEntry);
}
